#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int a, b, c, d, t;
    scanf("%d %d %d %d\n", &a, &b, &c, &d);
    if (a > b)
    {
        t = a;
        a = b;
        b = t;
    }
    if (b > c)
    {
        t = b;
        b = c;
        c = t;
    }
    if (c > d)
    {
        t = c;
        c = d;
        d = t;
    }
    printf("max=%d\n", d);
    return 0;
}
